<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/IC_Driver/SPI_WB25Qxx.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_27151ef53f10301e424ca52b7f0da996.html">IC_Driver</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">SPI_WB25Qxx.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>WB25Qxx SPI Flash 驱动程序  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;stdint.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
SPI_WB25Qxx.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_s_p_i___w_b25_qxx_8h" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_s_p_i___w_b25_qxx_8h" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_s_p_i___w_b25_qxx_8h">
<area shape="rect" title="WB25Qxx SPI Flash 驱动程序" alt="" coords="5,5,228,75"/>
<area shape="rect" title=" " alt="" coords="84,123,149,148"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_s_p_i___w_b25_qxx_8hdep" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_s_p_i___w_b25_qxx_8hdep" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_s_p_i___w_b25_qxx_8hdep">
<area shape="rect" title="WB25Qxx SPI Flash 驱动程序" alt="" coords="130,5,353,75"/>
<area shape="rect" href="_flash_disk_8c.html" title="管理片外 SPI―Flash 的读写, 对接 FATFS 组件" alt="" coords="5,123,229,192"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html" title="WB25Qxx SPI Flash 驱动程序" alt="" coords="254,123,477,192"/>
</map>
</div>
</div>
<p><a href="_s_p_i___w_b25_qxx_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a0465c5f017965876cf6ff8859eb2731f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a0465c5f017965876cf6ff8859eb2731f">WB25Qxx_Init</a> (void)</td></tr>
<tr class="memdesc:a0465c5f017965876cf6ff8859eb2731f"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片  <a href="_s_p_i___w_b25_qxx_8h.html#a0465c5f017965876cf6ff8859eb2731f">更多...</a><br /></td></tr>
<tr class="separator:a0465c5f017965876cf6ff8859eb2731f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a026120f0fec011e2c302b114b5961b55"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a026120f0fec011e2c302b114b5961b55">WB25Qxx_Read_Manufacturer_Device_ID</a> (void)</td></tr>
<tr class="memdesc:a026120f0fec011e2c302b114b5961b55"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取芯片厂商和设备 ID  <a href="_s_p_i___w_b25_qxx_8h.html#a026120f0fec011e2c302b114b5961b55">更多...</a><br /></td></tr>
<tr class="separator:a026120f0fec011e2c302b114b5961b55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f90491088e0e7053d211def3f87a330"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a8f90491088e0e7053d211def3f87a330">WB25Qxx_Read_JEDEC_ID</a> (void)</td></tr>
<tr class="memdesc:a8f90491088e0e7053d211def3f87a330"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取芯片 JEDEC ID  <a href="_s_p_i___w_b25_qxx_8h.html#a8f90491088e0e7053d211def3f87a330">更多...</a><br /></td></tr>
<tr class="separator:a8f90491088e0e7053d211def3f87a330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65571e7929b299af3a763c206a2c98b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a65571e7929b299af3a763c206a2c98b5">WB25Qxx_EraseSector</a> (uint32_t addr)</td></tr>
<tr class="memdesc:a65571e7929b299af3a763c206a2c98b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">擦除 WB25Qxx 指定扇区地址  <a href="_s_p_i___w_b25_qxx_8h.html#a65571e7929b299af3a763c206a2c98b5">更多...</a><br /></td></tr>
<tr class="separator:a65571e7929b299af3a763c206a2c98b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c158a445050a00b631fd669de3213d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a6c158a445050a00b631fd669de3213d7">WB25Qxx_ReadData</a> (uint32_t addr, uint8_t *buff, uint32_t cnt)</td></tr>
<tr class="memdesc:a6c158a445050a00b631fd669de3213d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">从 WB25Qxx 指定地址读取指定个字节数据  <a href="_s_p_i___w_b25_qxx_8h.html#a6c158a445050a00b631fd669de3213d7">更多...</a><br /></td></tr>
<tr class="separator:a6c158a445050a00b631fd669de3213d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af72df055a5bc71064719f68842f515"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a6af72df055a5bc71064719f68842f515">WB25Qxx_WritePage</a> (uint32_t addr, uint8_t *buff, uint32_t cnt)</td></tr>
<tr class="memdesc:a6af72df055a5bc71064719f68842f515"><td class="mdescLeft">&#160;</td><td class="mdescRight">向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空)  <a href="_s_p_i___w_b25_qxx_8h.html#a6af72df055a5bc71064719f68842f515">更多...</a><br /></td></tr>
<tr class="separator:a6af72df055a5bc71064719f68842f515"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3283a1cc275bb536b31ab945449b40c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#af3283a1cc275bb536b31ab945449b40c">WB25Qxx_WriteBuff</a> (uint32_t addr, uint8_t *buff, uint32_t cnt)</td></tr>
<tr class="memdesc:af3283a1cc275bb536b31ab945449b40c"><td class="mdescLeft">&#160;</td><td class="mdescRight">向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空)  <a href="_s_p_i___w_b25_qxx_8h.html#af3283a1cc275bb536b31ab945449b40c">更多...</a><br /></td></tr>
<tr class="separator:af3283a1cc275bb536b31ab945449b40c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31f4382f10e496b80033a9550032fd1f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_p_i___w_b25_qxx_8h.html#a31f4382f10e496b80033a9550032fd1f">WB25Qxx_CheckTest</a> (void)</td></tr>
<tr class="memdesc:a31f4382f10e496b80033a9550032fd1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">本驱动模块 WB25Qxx 各功能测试  <a href="_s_p_i___w_b25_qxx_8h.html#a31f4382f10e496b80033a9550032fd1f">更多...</a><br /></td></tr>
<tr class="separator:a31f4382f10e496b80033a9550032fd1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >WB25Qxx SPI Flash 驱动程序 </p>
<p ><a href="http://www.synwit.com.cn/e/tool/gbook/?bid=1">http://www.synwit.com.cn/e/tool/gbook/?bid=1</a> </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 Lib the first version 2023-05-06 lzh add configuration options (SPI Flash Operation) </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>/</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8h_source.html">SPI_WB25Qxx.h</a> 中定义.</p>
</div><h2 class="groupheader">函数说明</h2>
<a id="a0465c5f017965876cf6ff8859eb2731f" name="a0465c5f017965876cf6ff8859eb2731f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0465c5f017965876cf6ff8859eb2731f">&#9670;&#160;</a></span>WB25Qxx_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WB25Qxx_Init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片 </p>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00154">154</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_cgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_cgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_cgraph" id="a_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_cgraph">
<area shape="rect" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="5,104,112,129"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a04c55a0ea26c3794552069171a06f868" title="进入 QPI 模式" alt="" coords="186,5,335,31"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a39809b92887312675a23a33bf9329fce" title="芯片忙检测(执行擦除、写入操作后需要执行忙检测以判断芯片是否已经完成操作)" alt="" coords="196,55,325,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8f90491088e0e7053d211def3f87a330" title="读取芯片 JEDEC ID" alt="" coords="167,104,354,129"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a026120f0fec011e2c302b114b5961b55" title="读取芯片厂商和设备 ID" alt="" coords="160,154,361,194"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8fa23417edd7b0324ad2a7f77913ed3a" title="设置 QPI 模式下适应对最大读取频率或最小数据访问延迟的读等待周期." alt="" coords="173,218,348,258"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_icgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_icgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_icgraph" id="a_s_p_i___w_b25_qxx_8h_a0465c5f017965876cf6ff8859eb2731f_icgraph">
<area shape="rect" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="1549,55,1656,80"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="1389,55,1501,80"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,55,1341,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,30,836,55"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,131,1179,156"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,30,1183,55"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,79,1016,104"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,30,1000,55"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,30,621,55"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,30,444,55"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,30,305,55"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,30,179,55"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,30,56,55"/>
</map>
</div>

</div>
</div>
<a id="a026120f0fec011e2c302b114b5961b55" name="a026120f0fec011e2c302b114b5961b55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a026120f0fec011e2c302b114b5961b55">&#9670;&#160;</a></span>WB25Qxx_Read_Manufacturer_Device_ID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t WB25Qxx_Read_Manufacturer_Device_ID </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读取芯片厂商和设备 ID </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">uint16_t</td><td>: 高 8 位为厂商 ID, 低 8 位为 Device ID </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00218">218</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a026120f0fec011e2c302b114b5961b55_icgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a026120f0fec011e2c302b114b5961b55_icgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a026120f0fec011e2c302b114b5961b55_icgraph" id="a_s_p_i___w_b25_qxx_8h_a026120f0fec011e2c302b114b5961b55_icgraph">
<area shape="rect" title="读取芯片厂商和设备 ID" alt="" coords="1704,48,1905,88"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a0465c5f017965876cf6ff8859eb2731f" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="1549,55,1656,80"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="1389,55,1501,80"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,55,1341,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,30,836,55"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,131,1179,156"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,30,1183,55"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,79,1016,104"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,30,1000,55"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,30,621,55"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,30,444,55"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,30,305,55"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,30,179,55"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,30,56,55"/>
</map>
</div>

</div>
</div>
<a id="a8f90491088e0e7053d211def3f87a330" name="a8f90491088e0e7053d211def3f87a330"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f90491088e0e7053d211def3f87a330">&#9670;&#160;</a></span>WB25Qxx_Read_JEDEC_ID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t WB25Qxx_Read_JEDEC_ID </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读取芯片 JEDEC ID </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">uint32_t</td><td>: 最高 8 位为 EFh(厂商 ID), 其次 8 位为 Memory Type ID, 最低 8 位为 Capacity ID </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00259">259</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a8f90491088e0e7053d211def3f87a330_icgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a8f90491088e0e7053d211def3f87a330_icgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a8f90491088e0e7053d211def3f87a330_icgraph" id="a_s_p_i___w_b25_qxx_8h_a8f90491088e0e7053d211def3f87a330_icgraph">
<area shape="rect" title="读取芯片 JEDEC ID" alt="" coords="1704,55,1891,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a0465c5f017965876cf6ff8859eb2731f" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="1549,55,1656,80"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="1389,55,1501,80"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,55,1341,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,30,836,55"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,131,1179,156"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,30,1183,55"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,79,1016,104"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,30,1000,55"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,30,621,55"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,30,444,55"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,30,305,55"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,30,179,55"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,30,56,55"/>
</map>
</div>

</div>
</div>
<a id="a65571e7929b299af3a763c206a2c98b5" name="a65571e7929b299af3a763c206a2c98b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65571e7929b299af3a763c206a2c98b5">&#9670;&#160;</a></span>WB25Qxx_EraseSector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WB25Qxx_EraseSector </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>擦除 WB25Qxx 指定扇区地址 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>: 要擦除的扇区的地址, 每扇区 4K 字节(addr 必须按 4KBytes 边界对齐) </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00291">291</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_cgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_cgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_cgraph" id="a_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_cgraph">
<area shape="rect" title="擦除 WB25Qxx 指定扇区地址" alt="" coords="5,31,167,56"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a39809b92887312675a23a33bf9329fce" title="芯片忙检测(执行擦除、写入操作后需要执行忙检测以判断芯片是否已经完成操作)" alt="" coords="233,5,363,31"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#ae31db601e8f25e65389adda808c61e8d" title="设置 WEL 位, 使能写入(必须在每个擦除、写入状态寄存器和擦除/编程安全寄存器指令之前设置)" alt="" coords="215,55,381,80"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_icgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_icgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_icgraph" id="a_s_p_i___w_b25_qxx_8h_a65571e7929b299af3a763c206a2c98b5_icgraph">
<area shape="rect" title="擦除 WB25Qxx 指定扇区地址" alt="" coords="1549,55,1711,80"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="1389,55,1501,80"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,55,1341,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,30,836,55"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,131,1179,156"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,30,1183,55"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,79,1016,104"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,30,1000,55"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,30,621,55"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,30,444,55"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,30,305,55"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,30,179,55"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,30,56,55"/>
</map>
</div>

</div>
</div>
<a id="a6c158a445050a00b631fd669de3213d7" name="a6c158a445050a00b631fd669de3213d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c158a445050a00b631fd669de3213d7">&#9670;&#160;</a></span>WB25Qxx_ReadData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WB25Qxx_ReadData </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cnt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从 WB25Qxx 指定地址读取指定个字节数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>: 要读取的数据在 WB25Qxx 上的地址 </td></tr>
    <tr><td class="paramname">buff</td><td>: 读取到的数据存储在 buff 中 </td></tr>
    <tr><td class="paramname">cnt</td><td>: 数据字节个数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00321">321</a> 行定义.</p>

</div>
</div>
<a id="a6af72df055a5bc71064719f68842f515" name="a6af72df055a5bc71064719f68842f515"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6af72df055a5bc71064719f68842f515">&#9670;&#160;</a></span>WB25Qxx_WritePage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WB25Qxx_WritePage </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cnt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>: 数据要写入到 WB25Qxx 的物理位置 </td></tr>
    <tr><td class="paramname">buff</td><td>: 数据源 </td></tr>
    <tr><td class="paramname">cnt</td><td>: 数据字节个数(每页256字节，每次写入的数据必须在同一页的地址范围内, 不能跨页[即不可超过 256 字节]) </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00371">371</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_s_p_i___w_b25_qxx_8h_a6af72df055a5bc71064719f68842f515_icgraph.png" border="0" usemap="#a_s_p_i___w_b25_qxx_8h_a6af72df055a5bc71064719f68842f515_icgraph" alt=""/></div>
<map name="a_s_p_i___w_b25_qxx_8h_a6af72df055a5bc71064719f68842f515_icgraph" id="a_s_p_i___w_b25_qxx_8h_a6af72df055a5bc71064719f68842f515_icgraph">
<area shape="rect" title="向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空)" alt="" coords="1549,55,1700,80"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="1389,55,1501,80"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,55,1341,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,30,836,55"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,131,1179,156"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,30,1183,55"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,79,1016,104"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,30,1000,55"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,30,621,55"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,30,444,55"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,30,305,55"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,30,179,55"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,30,56,55"/>
</map>
</div>

</div>
</div>
<a id="af3283a1cc275bb536b31ab945449b40c" name="af3283a1cc275bb536b31ab945449b40c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3283a1cc275bb536b31ab945449b40c">&#9670;&#160;</a></span>WB25Qxx_WriteBuff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WB25Qxx_WriteBuff </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cnt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>: 数据要写入到 WB25Qxx 的物理位置 </td></tr>
    <tr><td class="paramname">buff</td><td>: 数据源 </td></tr>
    <tr><td class="paramname">cnt</td><td>: 数据字节个数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00419">419</a> 行定义.</p>

</div>
</div>
<a id="a31f4382f10e496b80033a9550032fd1f" name="a31f4382f10e496b80033a9550032fd1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31f4382f10e496b80033a9550032fd1f">&#9670;&#160;</a></span>WB25Qxx_CheckTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t WB25Qxx_CheckTest </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>本驱动模块 WB25Qxx 各功能测试 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>: success </td></tr>
    <tr><td class="paramname">other</td><td>: error code </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html">SPI_WB25Qxx.c</a> 第 <a class="el" href="_s_p_i___w_b25_qxx_8c_source.html#l00505">505</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
